package comone.javafour;

public class People  {
    private int id;
    private String name;
    private String password;

    public People toLogin() throws RuntimeException{
        //和密码的验证
        System.out.println("用户名和密码的验证");
        return new People();
    }

    public static void test(){

    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
